package megrez.mail.sender;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import lombok.extern.slf4j.Slf4j;
import megrez.boot.autoconfigure.aliyun.mail.MailSenderClient;

@Slf4j
@Configuration
public class AliyunAutoConfig {


    @Bean
    public AliyunMailSenderService aliyunMailSenderService(MailSenderClient mailSenderClient) {
        log.info("starter-aliyun-sender plugin enabled");
        return new AliyunMailSenderService(mailSenderClient);
    }
}
